//
// Created by ZMX on 2017/10/23.
//
#include <set>
#include <list>

using namespace std;

#ifndef RUCUBE_NODE_H
#define RUCUBE_NODE_H

class Node {
public:
    pair<int, int> coord;
    int color;

    Node(int x = 0, int y = 0, int c = 0) :
            coord(x, y), color(c) {}

    friend inline bool operator<(const Node &lhs, const Node &rhs);
};

inline bool operator<(const Node &lhs, const Node &rhs) {
    if (lhs.coord.second < rhs.coord.second) {
        return true;
    } else if (lhs.coord.second == rhs.coord.second) {
        return lhs.coord.first < rhs.coord.first;
    } else {
        return false;
    }
}

#endif //RUCUBE_NODE_H
